package com.aven.blog.service.Impl;

import com.aven.blog.bean.User;
import com.aven.blog.dao.IUserDao;
import com.aven.blog.dao.impl.IUserDaoImpl;
import com.aven.blog.service.IUserService;

public class UserServiceImpl implements IUserService {
    private IUserDao userDao = new IUserDaoImpl();

    @Override
    public User findByUsername(String username) {

        return userDao.findByUsername(username);
    }

    @Override
    public int addUser(User user) {
        return userDao.addUser(user);
    }
}
